<div class="main row">

    <div class="catego-title2">
        <h2 class="clearfix">
            <a href="#"><span><?php echo $page_title; ?></span></a>
            <div class="dropdown dropdown-style pull-right">
                <a id="dLabel" role="button" data-toggle="dropdown" data-target="#" href="#"></a>
                <ul class="dropdown-menu" role="menu" aria-labelledby="dLabel">
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Chính sách nhập khẩu</a></li>
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Chính sách xuất khẩu</a></li>
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Chính sách thuê</a></li>
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Văn bản pháp quy</a></li>
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Thủ tục hải quan</a></li>
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Chính sách xuất nhập cảnh</a></li>
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Nghiệp vụ giao nhận</a></li>
                    <li><a href="<?php echo $base_url . "hoi-dap-group"; ?>">Các vấn đề khác</a></li>
                </ul>
            </div>        
        </h2>
    </div>    

    <div class="panel-group" id="accordion">
        <?php
        if (isset($aFAQ) && count($aFAQ) > 0) {
            $firstRecord = 1;
            $i = $pagesize * ($cur_page - 1) + 1;
            foreach ($aFAQ as $key => $item):
                if ($firstRecord == 1){
        ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $i; ?>">
                    <span class="question-no">Hỏi <?php echo $i; ?>:</span><span class="question-desc"><?php echo $item->question; ?></span>
                  </a>
                </h4>
            </div>
            <div id="collapse<?php echo $i; ?>" class="panel-collapse collapse in">
                <div class="panel-body">
                    <span class="answer"><?php echo $item->answer; ?></span>
                </div>
            </div>
        </div>
        <?php 
                }else{
        ?>
        <div class="panel panel-default">
            <div class="panel-heading">
                <h4 class="panel-title">
                  <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion" href="#collapse<?php echo $i; ?>">
                      <span class="question-no">Hỏi <?php echo $i; ?>:</span><span class="question-desc"><?php echo $item->question; ?></span>
                  </a>
                </h4>
            </div>
            <div id="collapse<?php echo $i; ?>" class="panel-collapse collapse">
                <div class="panel-body">
                    <span class="answer"><?php echo $item->answer; ?></span>
                </div>
            </div>
        </div>
        <?php
                }
                $firstRecord++;
                $i++;
            endforeach;
        ?>
        <div id="faq-paging-wrapper">    
            <div id="faq-paging-1">
                <?php echo $paging; ?>
            </div>     
        </div>
        <?php    
        }
        ?> 
    </div>
</div>

